/**
  ******************************************************************************
  * @file   
  * @brief  
  ******************************************************************************
  * @note

 */

/* Includes ------------------------------------------------------------------*/
#include "filter.h"
/* Definitions ---------------------------------------------------------*/

/* Private variables ---------------------------------------------------------*/

/* Global variables ---------------------------------------------------------*/

/*Functions------------------------------------------------------------------*/

float MeanFilter(float adc[],int num){
    float ave=0;
    int n;
	  for(n=0;n<num;){
		    ave+=adc[n++];
		}
		return (ave/num);
}

/* Exported function declarations --------------------------------------------*/

